package whu.hami.tea.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import whu.hami.tea.R;
import whu.hami.tea.activity.RegisterActivity;

/**
 * Created by pendragon on 17-5-28.
 */

public class Register_3 extends Fragment {

    private Button btnCommit;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fg_register_3, container, false);

        btnCommit = (Button) root.findViewById(R.id.btn_commit);
        btnCommit.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                RegisterActivity activity = (RegisterActivity) getActivity();
                activity.myHandler.sendEmptyMessage(3);
            }
        });
        return root;
    }
}
